package arraylist;

import java.util.ArrayList;

public class Test {

    //系统带的
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);

        System.out.println(list);

    }




    //自己写的
    public static void main1(String[] args) {
        MyArrayList myArrayList = new MyArrayList(10);

        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.display();
    }

}
